import Loading from './Loading.vue'

const loadingpage = {
    install(Vue) {
        const LoadingClass = Vue.extend(Loading)
        const loadingvm = new LoadingClass()
        document.body.appendChild(loadingvm.$mount().$el)


        Vue.prototype.$showLoding = () => {
                loadingvm.isshow = true
            },
            Vue.prototype.$hideLoading = () => {
                console.log("关闭Loading");
                loadingvm.isshow = false
            }
    }
}
export default loadingpage